<?php


namespace app\api\controller\v1;


use app\common\controller\UserBaseController;
use app\common\library\AccessTokenModel;

class InnerController extends UserBaseController
{

    function refresh_wx_access_tokenAction()
    {
        $this->paramlist = [
            'appid' => 'string',
        ];

        $this->check_params();


        list($token, $expire) = (new AccessTokenModel())->refresh_wx_access_token($this->argv['appid']);
        $this->resp['token'] = $token;

        return $this->ret_resp();
    }

}
